 {layout name="layout/layout" /}
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
	<ul class="layui-tab-title">
		<li class="layui-this">添加会员等级</li>
	</ul>
</div>
<form class="layui-form1" method="post" action="{:Url('admin/viplevel/add_from')}">
	<div class="layui-form-item">
		<label class="layui-form-label">等级级别</label>
		<div class="layui-input-block">
			<input class="layui-input" type="number" min="1" name="level" />
		</div>
	</div>
	<div class="layui-form-item layui-form-text">
		<label class="layui-form-label">等级名</label>
		<div class="layui-input-block">
			<input class="layui-input" type="text" name="title" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">起始积分</label>
		<div class="layui-input-block" >
			<input class="layui-input" type="number" min="1" name="jifen_up" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">终止积分</label>
		<div class="layui-input-block" >
			<input class="layui-input" type="number" min="1" name="jifen_down" />
			<span style="font-size: 12px;color: red">
				终止积分必须大于起始积分
			</span>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">等级权益</label>
		<div class="layui-input-block"  style="line-height:36px">
			{foreach $privilege as $vo}
			<input style="margin-left: 30px" type="checkbox" name="privilege[]" value="{$vo->id}" >&nbsp;&nbsp;{$vo->title}
			{/foreach}
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<input class="layui-btn" type="button" value="提交" onclick="this.form.submit()">
		</div>
	</div>
</form>